home *** CD-ROM | disk | FTP | other *** search
/ 10,000 Great Games / 10,000 Great Games.iso / Product / 66 / data1.cab / Source_Files / Src / Surfaces.cpp < prev    next >
C/C++ Source or Header  |  2000-01-16  |  2KB  |  103 lines

  1. #include "stdafx.h"
  2.  
  3. cBackSurface::cBackSurface()
  4.         : cSurface(GAME_X, 0, GAME_DX, GAME_DY, (int)(0.7 * LEVEL_SIZE), GAME_EDGE, FALSE, FALSE, DIRTY_BLOCK)
  5. {
  6. }
  7.  
  8. void cBackSurface::write_dirty()
  9. {     
  10.     write_tiled(backgr);
  11.     
  12.     write_displayable(scenery_back1);
  13.     write_displayable(scenery_back2);
  14. }
  15.  
  16. cGameSurface::cGameSurface()
  17.         : cSurface(GAME_X, 0, GAME_DX, GAME_DY, LEVEL_SIZE, GAME_EDGE, TRUE, FALSE, DIRTY_BLOCK)
  18. {
  19. }
  20.  
  21. void cGameSurface::write_dirty()
  22. {      
  23.     clear_dirty(mask_color);
  24.     
  25.     write_displayable(scenery_game1);
  26.     write_displayable(structures);
  27.     write_displayable(stairs);
  28.     write_displayable(players);
  29.     write_displayable(weapons);
  30.     write_displayable(bonus);
  31.     write_displayable(bubbles);
  32.     write_displayable(effects);    
  33.     write_displayable(scenery_game2);
  34.     write_displayable(scenery_game3);
  35.     write_displayable(parts);
  36.     write_displayable(disaster);        
  37.  
  38.     write_displayable(controllers);
  39.     write_displayable(texts);
  40. }
  41.  
  42. cLeftSurface::cLeftSurface()
  43.         : cSurface(0, 0, GAME_X, GAME_DY, GAME_DY, 0, FALSE, TRUE, DIRTY_BLOCK)
  44. {    
  45. }
  46.  
  47. void cLeftSurface::write_dirty()
  48. {
  49.     write_tiled(ambient1);
  50.     
  51.     write_displayable(images_left);
  52.     write_displayable(texts_left);
  53. }
  54.  
  55. cRightSurface::cRightSurface()
  56.         : cSurface(GAME_X + GAME_DX, 0, GAME_X, GAME_DY, GAME_DY, 0, FALSE, TRUE, DIRTY_BLOCK)
  57. {    
  58. }
  59.  
  60. void cRightSurface::write_dirty()
  61. {
  62.     write_tiled(ambient2);
  63.     
  64.     write_displayable(images_right);
  65.     write_displayable(texts_right);
  66. }
  67.  
  68. cNonParallaxSurface::cNonParallaxSurface()
  69.         : cSurface(GAME_X, 0, GAME_DX, GAME_DY, LEVEL_SIZE, GAME_EDGE, FALSE, TRUE, DIRTY_BLOCK)
  70. {
  71. }
  72.  
  73. void cNonParallaxSurface::write_dirty()
  74. {      
  75.     write_tiled(backgr);
  76.     
  77.     write_displayable(scenery_back1);
  78.     write_displayable(scenery_back2);
  79.     write_displayable(scenery_game1);
  80.     write_displayable(structures);
  81.     write_displayable(stairs);
  82.     write_displayable(players);
  83.     write_displayable(weapons);
  84.     write_displayable(bonus);
  85.     write_displayable(bubbles);
  86.     write_displayable(effects);
  87.     write_displayable(disaster);        
  88.     write_displayable(scenery_game2);
  89.     write_displayable(scenery_game3);
  90.     write_displayable(parts);
  91.     write_displayable(controllers);
  92.     write_displayable(texts);    
  93. }
  94.  
  95. cInfoSurface::cInfoSurface()
  96.         : cSurface(GAME_X, 0, GAME_DX, GAME_DY, GAME_DY, 0, TRUE, FALSE, DIRTY_BLOCK)
  97. {
  98. }
  99.  
  100. void cInfoSurface::write_dirty()
  101. {
  102. }
  103.